package org.yufan.core.result;

/**
 * Created by zxd on 2019/3/6
 **/
public class Result<T> {

    /**
     *   成功success 失败fail
     */
    private String status;
    /**
     * 状态码
     */
    private Integer code;

    /**
     * 失败信息
     */
    private String message;

    /**
     * 成功返回的数据
     */
    private T data;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
